#include "Keyboard.h"

Uint8* Keyboard::keystate = NULL;

bool Keyboard::isKeyPressed(int keycode)
{
    if(keystate == NULL) return false;

    return (keystate[keycode] != 0);
}

void Keyboard::update()
{
    // Poll keyboard
    keystate = SDL_GetKeyState(NULL);
}
